import LoginView from '../modules/loginView.js'
import StudentView from '../modules/studentView.js'

//配置路由规则
var routes = {
       "/login":()=>{new LoginView("el")},
       "/showall":()=>{new StudentView("el")}
      };
 //配置路由的读取方式
 var router = Router(routes).configure({ recurse: 'forward' });
 //初始化路由器
 router.init();
 //初始化路由
 window.location.hash = window.location.hash||"#/login"